package com.lezhi.socialgram.mapper.moments;

import com.lezhi.socialgram.model.moments.Moment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by daizhen on 2017/4/1.
 */
@Mapper
public interface MomentMapper {

    int createMomentsTable(@Param("table") String tableName);

    int insertMoment(Moment moment);

    Moment queryMomentById(Moment moment);

    int deleteMoment(Moment moment);

    int updateMoment(Moment moment);

}
